package com.etpjava.dao;

import java.util.List;
import java.util.Map;

import com.etpjava.model.Employee;
import com.etpjava.util.Page;

/**
 * @author liuk
 * @version 0.0.1
 * EmployeeDao interface 
 *
 */
public interface EmployeeDao {
	public List<Employee> findAll();
	public void findAll(Page aPage);
	public void delete(Employee em);
	public boolean save(Employee em);
	public void update(Employee em);
	public Employee findById(int id);
	public void findByName(Page p, String name) ;
	public List<Employee> findByPhone(String phone);
	public void search(Page p,Map<String, String> sw);
}
